import Vue from 'vue'
// import 'normalize.css/normalize.css'

import MakingForm from '@/components/formMake/Container.vue'
import GenerateForm from '@/components/formMake/GenerateForm.vue'

MakingForm.install = function(Vue) {
    Vue.component(MakingForm.name, MakingForm)
}

GenerateForm.install = function(Vue) {
    Vue.component(GenerateForm.name, GenerateForm)
}

const components = [
    MakingForm,
    GenerateForm
]

const install = function(Vue, opts = {}) {
    components.forEach(component => {
        Vue.component(component.name, component)
    })
}

if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue)
}

export {
    install,
    MakingForm,
    GenerateForm
}

export default {
    install,
    MakingForm,
    GenerateForm
}
